package com.liang.text3;

public class Text3 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.setAge(18);
        dog.setName("金毛");
        dog.setHeight(1.88);
        dog.eat();
        dog.lookHome();
        System.out.println(dog.getName()+"..."+dog.getAge()+"..."+dog.getHeight());

        System.out.println("-------");

        Cat cat = new Cat("波斯猫",2);
        cat.eat();
        cat.catchMouse();
        System.out.println(cat.getName()+"..."+cat.getAge());

    }
}
